package com.kx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kx.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    int deleteByPrimaryKey(Integer uid);

    int insertUser(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uid);

    User selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    User queryUserByName(String username);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);


}